//
//  ModalMessage.m
//  wechatManager
//
//  Created by tangchunhui on 15/4/18.
//  Copyright (c) 2015年 tangchunhui. All rights reserved.
//

#import "ModalMessage.h"

@implementation ModalMessage
-(id)initWithMd5str:(NSString *)md5str openid:(NSString *)openid testname:(NSString *)testname testdate:(NSString *)testdate{
    if (self = [super init]){
        self.md5str = md5str;
        self.openid = openid;
        self.testname = testname;
        self.testdate = testdate;
        
    }
    return self;
}

-(NSDictionary *)modalUrl{
    NSString *urlString =[NSString  stringWithFormat:@"http://ybxx.doctorcao.com/index.php/Home/Patient/syncdata"];
    NSDictionary *postdata = @{@"md5str":self.md5str,@"openid":self.openid,
                               @"testname":self.testname,@"testdate":self.testdate ,@"synctime":@"0"};
    
    NSDictionary *dic = @{@"url":urlString,
                          @"method":@"POST",
                          @"postdata":postdata
                          };
    return dic;
}


-(void)processSuccess:(NSDictionary *)results {
    NSLog(@"%@",results);
}


@end
